/*
 * @Description: 银行账户
 * @Author: rendc
 * @Date: 2023-11-19 11:02:10
 * @LastEditors: rendc
 * @LastEditTime: 2023-11-20 15:11:06
 */
class Account {
  // 成员变量 用private去修饰数据成员
  private String id;        
  private double balance; 
  // 成员方法
  public void setId(String id) {
    this.id = id.trim();
  }
  public String getId() { 
    return id; 
  }
  public void setBalance(double balance){
    this.balance = balance;
  }
  public double getBalance(){
    return balance;
  }
}